import {createRouter,createWebHashHistory} from 'vue-router'

import Table from '../table'
import triItem from '../trItem.vue'

const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/',
            meta:{keepalive:true},
            component:Table,
        },
        {
            path:'/home',
            meta:{keepalive:true},
            props:route=>({...route.query}),
            component:triItem
        }
    ]
})
export default router